import Vue from "vue";
import Vuex from "vuex";

Vue.use(Vuex);

export default new Vuex.Store({
  state: {
    mapList: {},
    viewList: {},
  },
  mutations: {
    // 左边移到落点的数据
    mapListBtn(state, value) {
      state.mapList = value;
      console.log(state.mapList);
    },
    //存放查看的数据
    viewBtn(state, value) {
      state.viewList = JSON.parse(value);
    },
  },
  actions: {},
  modules: {},
});
